package dao;

import java.util.List;
import domain.Article;

public interface ArticleDao {
	public boolean saveArticle(Article article);
	public boolean updateArticle(Article article);
	public boolean deleteArticle(Article article);
	public Article findArticleById(int id);
	public List findAllArticleByPage(int pageNo,int pageSize);
	public List findAllArticleByTypeByPage(int articleType_Id,int pageNo,int pageSize);
	public List findTopArticleByType(int articleType_Id,int count);
	public List findNewArticleByType(int articleType_Id, int count);
	public List findNewArticle(int count);
	public List findTopArticle(int count);
	public long findCountByType(int articleType_Id);
	public long findAllCount();
}
